using IQIGame.Onigao.Framework.Serialization;

namespace IQIGame.Onigao.Game
{
    public partial class CFSMConditionCfg : ISerializeByteBuf
    {
        public void DeSerialize(ByteBuf _buf)
        {
            id = _buf.ReadInt();
            parts = _buf.DeSerializeList<CFSMConditionPartCfg>();
            nextStateId = _buf.ReadInt();
        }

        public void Serialize(ByteBuf _buf)
        {
            _buf.WriteInt(id);
            _buf.SerializeList(parts);
            _buf.WriteInt(nextStateId);
        }
    }
}